package com.group3.hospital.service;

import com.group3.hospital.bean.Appointment;
import com.group3.hospital.bean.Doctor;
import com.group3.hospital.bean.Subject;

import java.util.List;

/**
 * @author 尚硅谷
 * @create 2021/12/30
 */
public interface AppointmentService {
    //第一次进入的界面
    List<Appointment> queryAll() throws Exception;


    //预约总数，用于分页
    Integer queryCount() throws Exception;


    List<Appointment> queryByPage(Integer pageUse) throws Exception;

    List<Subject> queryAllSubject() throws Exception;

    void addAppointment(Appointment appointment) throws Exception;

    //根据医生姓名查询相关信息
    Doctor queryDoctor(String name) throws Exception;
}
